package com.bharat.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name = "TESTS")
public class Test implements Serializable{

	private static final long serialVersionUID = 134332L;
	
	private Long testId;
	private String testName;
	private double testFee;
	
	private boolean editable;
	
	public Test() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "TEST_ID") 
	public Long getTestId() {
		return testId;
	}

	public void setTestId(Long testId) {
		this.testId = testId;
	}

	@Column(name = "TEST_NAME") 
	public String getTestName() {
		return testName;
	}

	public void setTestName(String testName) {
		this.testName = testName;
	}

	@Column(name = "TEST_FEE") 
	public double getTestFee() {
		return testFee;
	}

	public void setTestFee(double testFee) {
		this.testFee = testFee;
	}

	@Transient
	public boolean isEditable() {
		return editable;
	}
	
	public void setEditable(boolean editable) {
		this.editable = editable;
	}
	
}
